﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MaxNumber
{
    class classname
    {


        public static double campare(double x, double y, double z)
        {
            double temp;
            if (x > y)
            {
                temp = x;
            }
            else
            {
                temp = y;
            }
            if (z > temp)
            {
                temp = z;

            }
            return temp;

    }   }
    class Program
    {
       
        static void Main(string[] args)
        {
            Console.WriteLine("请输入一个实数：");
            double x = double.Parse(Console.ReadLine());
            Console.WriteLine("请输入一个实数：");
            double y = double.Parse(Console.ReadLine());
            Console.WriteLine("请输入一个实数：");
            double z = double.Parse(Console.ReadLine());
            double temp = classname.campare(x, y, z);
            Console.WriteLine($"比较后得到最大的数为{temp }");
            Console.ReadKey();
        }
    }
}
